<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/hr/staff_add.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/hrtrain/train_particulars_operation.shtml">
		<input type="hidden" name="trainFormMap.id" value="${train.id}"/>
		<section class="panel panel-default">
		<table class="layui-table"
			style="font-weight: bold; text-align: center;">
			<tr>
				<td colspan="60">员工培训记录表</td>

			</tr>
			<tr>
				<td>主题</td>
				<td colspan="3">${train.records_text}</td>
				<td colspan="2">组织部门</td>
				<td colspan="13">${train.teaching_object}</td>

			</tr>
			<tr>
				<td rowspan="2">内容</td>
				<td colspan="3" rowspan="2"></td>
				<td colspan="2">授课对象</td>
				<td colspan="13">${train.teaching_object}</td>
			</tr>
			<tr>
				<td colspan="2">授课人</td>
				<td colspan="13">${train.teaching_person}</td>

			</tr>
			<tr>
				<td>课时</td>
				<td colspan="3">${train.hour}</td>
				<td colspan="2">授课人所在<br />单位
				</td>
				<td colspan="13">${train.instructor_unit}</td>
			</tr>
			<tr>
				<td>考核方式</td>
				<td colspan="13"><c:forEach items="${staff}" var="key" end="0">
						<c:if test="${key.examination==1}">
				      代表课堂提问
				</c:if>
						<c:if test="${key.examination==2}">
				      笔试
				</c:if>
						<c:if test="${key.examination==3}">
				      实际操作
				</c:if>
						<c:if test="${key.examination==4}">
				      面试
				</c:if>
						<c:if test="${key.examination==5}">
				      其他
				</c:if>
					</c:forEach></td>
			</tr>
			<tr>
				<td></td>
				<td>姓名</td>
				<td>职务</td>
				<td>所在部门</td>
				<td>签到</td>
				<td colspan="3">考试结果</td>
				<td>评价</td>
				<td colspan="3">补考情况</td>
				<td>备注</td>
			</tr>
			<tr>
				<td rowspan="${counts+1}">参与人员</td>
			</tr>
			<c:forEach items="${staff}" var="key">
				<c:if test="${key.state!=2&&key.state!=3}">
					<tr>
						<td>${key.name }
						<input type="hidden" name="trainPeopleFormMap.id" value="${key.id}" />
						</td>
						<td>${key.position_name}</td>
						<td>${key.dnams}</td>
						<td style="padding: 0px;"><select class="form-control"
							id="salesman" name="oneState"
							style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
								<option value="1" ${key.state==1 ?'selected':''}>到场</option>
								<option value="2" ${key.state==2 ?'selected':''}>未到场</option>
								<option value="3" ${key.state==3 ?'selected':''}>请假</option>
								<option value="4" ${key.state==4 ?'selected':''}>迟到</option>
						</select></td>
						<td colspan="3">${key.exam}</td>
						<td>${key.evaluate}</td>
						<td colspan="3">${key.makeup_remake}</td>
						<td>${key.remake}</td>
					</tr>
				</c:if>
			</c:forEach>

			<tr>
				<td rowspan="${count+1}">缺勤人员</td>
			</tr>
			<c:forEach items="${staff}" var="key">
				<c:if test="${key.state==2 || key.state==3 }">
					<tr>
						<td>${key.name }
						<input type="hidden" name="trainPeopleFormMap.ids" value="${key.id}" />
						</td>
						<td>${key.position_name}</td>
						<td>${key.dnams}</td>
						<td style="padding: 0px;"><select class="form-control"
							id="salesman" name="twoState"
							style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
								<option value="1" ${key.state==1 ?'selected':''}>到场</option>
								<option value="2" ${key.state==2 ?'selected':''}>未到场</option>
								<option value="3" ${key.state==3 ?'selected':''}>请假</option>
								<option value="4" ${key.state==4 ?'selected':''}>迟到</option>
						</select></td>
						<td colspan="3">${key.exam}</td>
						<td>${key.evaluate}</td>
						<td colspan="3">${key.makeup_remake}</td>
						<td>${key.remake}
						
						</td>
					</tr>
				</c:if>
			</c:forEach>
			<tr>
				<td>应到人数</td>
				<td>实到人数</td>
				<td>请假人数</td>
				<td></td>
				<td>迟到人数</td>
				<td colspan="3">缺勤人数</td>
				<td>其他</td>
				<td colspan="5"></td>
			</tr>
			<tr>
				<td style="padding: 0px; width: 100px"><input type="text"
					class="form-control" name="staffFormMap.phone" value="${calculate}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				<td style="padding: 0px; width: 100px"><input type="text"
					class="form-control" name="staffFormMap.phone" value="${counts}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				<td style="padding: 0px; width: 100px"><input type="text"
					class="form-control" name="staffFormMap.phone" value="${leave}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				<td></td>
				<td style="padding: 0px; width: 100px"><input type="text"
					class="form-control" name="staffFormMap.phone" value="${latecomer}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				<td colspan="3" style="padding: 0px; width: 100px"><input
					type="text" class="form-control" name="staffFormMap.phone"
					value="${count}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				<td style="padding: 0px; width: 100px"><input type="text"
					class="form-control" name="staffFormMap.phone" value="${count}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;">
				</td>
				</td>
				<td colspan="5"></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td colspan="2">确认人</td>
				<td colspan="6" style="padding: 0px;">
				<input
					type="text" class="form-control" name="trainFormMap.yes_people" value="${train.yes_people}"
					style="width: 100%; border: 0px; margin: 0px; -webkit-box-shadow: none; box-shadow: none;"/>
				</td>
			</tr>
		</table>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script src="/static/build/layui.js"></script>
	<script type="text/javascript">
		
	</script>
</body>
</html>